package com.litianhao.nowcode.dao;

import com.litianhao.nowcode.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;


/**
 * @author litianhao
 * @create 2020-05-15 13:55
 */
@Mapper
public interface UserMapper {

    User selectById(int id);

    User selectByName(String username);

    User selectByEmail(String email);

    int insertUser(User user);

    int updateStatus(int id,int status);

    int updateHeader(int id, String headerUrl);

    int updatePassword(int id,String password);

}
